package flight.flight;

import java.io.IOException;
import java.util.Iterator;
import java.util.Properties;

import flight.solution.Solution;

public class SimpleTest {
	
	static public void main(String[] args) throws IOException
	{
		Properties configFile = new Properties();
		SimpleTest st=new SimpleTest();

		configFile.load(st.getClass().getClassLoader().getResourceAsStream("flight/configuration/configuration.properties"));
		String path=configFile.getProperty("path");
		
		Solution scheduled=new Solution("scheduled_arrival_benchmark.csv");
		Iterator<Integer> it=scheduled.getFlightHistoryIds().iterator();
		while(it.hasNext())
		{
			int f=it.next();
			scheduled.getEntry(f).setActualGateArrival(scheduled.getEntry(f).getActualGateArrival()-2);
			scheduled.getEntry(f).setActualRunwayArrival(scheduled.getEntry(f).getActualGateArrival()-3);
		}
		
		scheduled.writeToFile("scheminustwo.csv");
		
		
	}

}
